package com.ysd.repository;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;

import com.ysd.entity.User;

public interface UserRepository extends JpaRepository<User, Integer>{
				//@Query(value = "SELECT u.* from usertb u where u.user_name=?1 and u.password=?2",nativeQuery = true)
				//public User findByUser(String uname, String pwd);
				public User findByUserNameAndPassword(String userName, String password);
				
}
